# parse   美 [pɑːrs]
# vt. 解析；从语法上分析
# vi. 理解；从语法上分析
# n. 从语法上分析；分列

# file operation
# open
# reading
# close

# read only


read_file=open("readfile.txt", "r")
# print(read_file.readable())
# print(read_file.read())
# print(read_file.readline())
# print(read_file.readline())
# print(read_file.readlines())
# print(read_file.readlines()[1])

for item in read_file.readlines():
    print(item)


read_file.close()

'''
# read and write
open("readfile.txt", "r+")

# write, you can't read
open("readfile.txt", "w")

# append, can't modify, but can add new content in the end of the file
open("readfile.txt", "a")
'''